package org.uds.model;

/**************
 * 关系
 * @author luwenhe
 *
 */
public class Relation implements RelationElement {
	
	
	
	public Relation(char[] id, Element relationType, RelationElement firstElement, RelationElement secondElemnt) {
		super();
		this.id = id;
		this.relationType = relationType;
		this.firstElement = firstElement;
		this.secondElemnt = secondElemnt;
	}
	
	
	
	public char[] getId() {
		return id;
	}

	public Element getRelationType() {
		return relationType;
	}
	public RelationElement getFirstElement() {
		return firstElement;
	}
	public RelationElement getSecondElemnt() {
		return secondElemnt;
	}
	
	
	/***********
	 * id  SHA1的
	 */
	private char[] id;
	
	/***********
	 * 关系类型
	 */
	private Element relationType;
	
	/**********
	 * 关系的第一个元素
	 */
	private RelationElement firstElement;
	
	/*********
	 * 关系的第二个元素
	 */
	private RelationElement secondElemnt;

}
